import { createStore } from 'vuex'

const store = createStore({
  state: {
    hasPendingRefunds: false
  },
  mutations: {
    setHasPendingRefunds(state, status) {
      state.hasPendingRefunds = status;
    }
  },
  actions: {
    updatePendingRefunds({ commit }, status) {
      commit('setPendingRefunds', status)
    }
  }
})

export default store